home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / OEMNXPPP.IN_ / oemnxppp.inf
INI File  |  1996-07-12  |  71KB  |  1,544 lines

  1. [Identification]
  2.     OptionType = NetTransport
  3. [PlatformsSupported]
  4.     ISA
  5.     EISA
  6.     "Jazz-Internal Bus"
  7. [Options]
  8.     RASPPTP
  9. [FileConstants]
  10.     InfName                 = "OEMNXPPP.INF"
  11.     UtilityInf              = "UTILITY.INF"
  12.     ParamInf                = "NCPARAM.INF"
  13.     subroutineinf           = "SUBROUTN.INF"
  14.     SoftwareType            = "driver"
  15.     Exit_Code               = 0
  16.     NetEventDLL             = "%SystemRoot%\System32\netevent.dll"
  17.     IoLogMsgDLL             = "%SystemRoot%\System32\IoLogMsg.dll"
  18.     RASPPTPMsgDLL           = "%SystemRoot%\System32\raspptpl.dll;%SystemRoot%\System32\netevent.dll"
  19.     Manufacturer            = "Microsoft"
  20.     ProductMajorVersion     = "4"
  21.     ProductMinorVersion     = "0"
  22.     ProductVersion          = $(ProductMajorVersion)"."$(ProductMinorVersion)
  23.     ProductSoftwareName     = "RASPPTPM"
  24.     ProductSoftwareImagePath = "\SystemRoot\System32\drivers\RASPPTPM.sys"
  25.     NetworkCardKeyName      = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards"
  26.     ProductKeyBase          = $(!NTN_SoftwareBase)"\"$(Manufacturer)
  27.     NetRuleSoftwareType     = "RASPPTPSys RASPPTPDriver"
  28.     NetRuleSoftwareUse      = $(SoftwareType)
  29.     NetRuleSoftwareBindForm = """RASPPTPSys"" yes no container"
  30.     NetRuleSoftwareClass    = {"RASPPTPDriver basic"}
  31.     NetRuleSoftwareBindable = {"RASPPTPDriver RASPPTPAdapter non exclusive 100"}
  32.     ProductHardwareName     = "RASPPTPM"
  33.     NetRuleHardwareBindForm = " yes yes container"
  34.     NetRuleHardwareRASPPTPType = "RASPPTP RASPPTPAdapter"
  35.     NetRuleHardwareRASPPTPClass = {"RASPPTPAdapter basic"}
  36.     BindableRASPPTPTxt      = {"RASPPTPDriver RASPPTPAdapter non exclusive 100"}
  37.     ProductOpSupport     = 134 
  38.     ProductRASPPTPName      = "RASPPTP"
  39.     ProductRASPPTPSvcType   = "transport"
  40.     NetRuleRASPPTPClass     = "classRaspptpTransport ""basic"""
  41.     NetRuleRASPPTPType      = "RaspptpTransport classRaspptpTransport"
  42.     NetRuleRASPPTPUse       = "system"
  43.     TapiDevices             = "TAPI DEVICES"
  44.     TapiDeviceKey           = $(ProductHardwareName)
  45.     TapiMediaType           = "VPN"
  46.     ProductKeyName          = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"+
  47.                               $(ProductSoftwareName)"\CurrentVersion"
  48.     ParamKeyName            = $(!NTN_ServiceBase)"\"$(ProductHardwareName)+
  49.                               "\Parameters"
  50.     ProductRASPPTPKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"+
  51.                               "RASPPTP\CurrentVersion"
  52.     LineType                = 1
  53.     DebugFlags              = 0
  54. [SMANFileConstants]
  55.     PPTPProductMajorVersion         = "4"
  56.     PPTPProductMinorVersion         = "0"
  57.     PPTPProductVersion              = $(PPTPProductMajorVersion)"."$(PPTPProductMinorVersion)
  58.     PPTPProductSoftwareName         = "RASPPTPE"
  59.     PPTPProductSoftwareImagePath    = "\SystemRoot\System32\drivers\RASPPTPE.sys"
  60.     PPTPNetRuleSoftwareType         = "RASPPTPSys RASPPTPDriver"
  61.     PPTPNetRuleSoftwareBindForm     = """RASPPTPSys"" yes no container"
  62.     PPTPNetRuleSoftwareClass        = {"RASPPTPDriver basic"}
  63.     PPTPNetRuleSoftwareBindable     = {"RASPPTPDriver RASPPTPAdapter non exclusive 100"}
  64.     PPTPProductHardwareName         = "RASPPTPE"
  65.     PPTPNetRuleHardwareRASPPTPType  = "RASPPTP RASPPTPAdapter"
  66.     PPTPNetRuleHardwareRASPPTPClass = {"RASPPTPAdapter basic"}
  67.     PPTPBindableRASPPTPTxt          = {"RASPPTPDriver RASPPTPAdapter non exclusive 100"}
  68.     PPTPProductKeyName              = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"+
  69.                                       $(PPTPProductSoftwareName)"\CurrentVersion"
  70.     PPTPParamKeyName                = $(!NTN_ServiceBase)"\"$(PPTPProductHardwareName)+
  71.                                       "\Parameters"
  72.     !PPTPFProductName               = "RASPPTPF"
  73.     !PPTPFProductImagePath          = "\SystemRoot\system32\drivers\raspptpf.sys"
  74.     !RaspptpfKeyName                = $(!NTN_ServiceBase)"\"$(!PPTPFProductName)
  75. [GeneralConstants]
  76.     from                    = ""
  77.     to                      = ""
  78.     ExitCodeOk              = 0
  79.     ExitCodeCancel          = 1
  80.     ExitCodeFatal           = 2
  81.     KeyNull                 = ""
  82.     MAXIMUM_ALLOWED         = 33554432
  83.     SERVICE_NO_CHANGE       = 4294967295
  84.     RegistryErrorIndex      = NO_ERROR
  85.     KeyProduct              = ""
  86.     KeyParameters           = ""
  87.     TRUE                    = 1
  88.     FALSE                   = 0
  89.     NoTitle                 = 0
  90.     ExitState               = "Active"
  91.     OldVersionExisted       = $(FALSE)
  92.     DriverPath              = $(!STF_NTPATH)\drivers
  93. [Date]
  94.     Now                     = {} ? $(!LIBHANDLE) GetSystemDate
  95. [Identify]
  96.     Read-Syms Identification
  97.     Set Status      = STATUS_SUCCESSFUL
  98.     Set Identifier  = $(OptionType)
  99.     Set Media       = #("Source Media Descriptions", 1, 1)
  100.     Return $(Status) $(Identifier) $(Media)
  101. [ReturnOptions]
  102.     Set Status          = STATUS_FAILED
  103.     Set OptionList      = {}
  104.     Set OptionTextList  = {}
  105.     Set LanguageList    = ^(LanguagesSupported, 1)
  106.     IfContains(i) $($0) in $(LanguageList)
  107.         IfStr(i) $($1) == ""
  108.             GoTo SetOptions
  109.         EndIf
  110.         Set PlatformList = ^(PlatformsSupported, 1)
  111.         IfContains(i) $($1) in $(PlatformList)
  112.             GoTo SetOptions
  113.         Else
  114.             Set Status = STATUS_NOTSUPPORTED
  115.             GoTo ExitReturnOptions
  116.         EndIf
  117.     Else
  118.         Set Status = STATUS_NOLANGUAGE
  119.         GoTo ExitReturnOptions
  120.     EndIf
  121. SetOptions = +
  122.     Set OptionList     = ^(Options, 1)
  123.     Set OptionTextList = ^(OptionsText$($0), 1)
  124.     Set Status         = STATUS_SUCCESSFUL
  125. ExitReturnOptions = +
  126.     Return $(Status) $(OptionList) $(OptionTextList)
  127. [InstallOption]
  128.     Set Status   = STATUS_FAILED
  129.     Set Option   = $($1)
  130.     Set SrcDir   = $($2)
  131.     Set RasDir   = $($2)
  132.     Set AddCopy  = $($3)
  133.     Set DoCopy   = $($4)
  134.     Set DoConfig = $($5)
  135.     Set LanguageList = ^(LanguagesSupported, 1)
  136.     IfContains(i) $($0) NOT-IN $(LanguageList)
  137.         Return STATUS_NOLANGUAGE
  138.     EndIf
  139.     Set-Subst LF = "\n"
  140.     Read-Syms GeneralConstants
  141.     Read-Syms FileConstants
  142.     Read-Syms DialogConstants$(!STF_LANGUAGE)
  143.     Read-Syms SMANFileConstants
  144.     IfStr(i) $(!NTN_Origination) == "NCPA"
  145.         Set Continue = $(OK)
  146.     EndIf
  147.     Read-Syms FileConstants$(!STF_LANGUAGE)
  148.     Detect Date
  149.     Set-Title  $(FunctionTitle)$(Option)
  150.     Read-Syms SMANFileConstants$(!STF_LANGUAGE)
  151.     Set to   = Begin
  152.     Set from = Begin
  153.     Set CommonStatus = STATUS_SUCCESSFUL
  154.     EndWait
  155. Begin = +
  156.     Set ActivateDetection = FALSE
  157.     IfStr(i) $(!NTN_InstallMode) == deinstall
  158.         Set StartLabel = RemoveAdapter
  159.     Else-IfStr(i) $(!NTN_InstallMode) == Update
  160.         Set StartLabel = UpgradeSoftware
  161.     Else-IfStr(i) $(!NTN_InstallMode) == bind
  162.         Set StartLabel = BindingAdapter
  163.     Else-IfStr(i) $(!NTN_InstallMode) == configure
  164.         Set StartLabel = ConfigureAdapter
  165.         Set ActivateDetection = TRUE
  166.         Set CommonStatus = STATUS_REBOOT
  167.         IfStr(i) $(ProductKeyName) == $(!NTN_RegBase)
  168.             Debug-Output $(InfName)": Cannot configure the EtherWORKS 3 driver software."
  169.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  170.             IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  171.                 Debug-Output $(InfName)": ShellCode error: cannot get an error string."
  172.                 GoTo ShellCodeError
  173.             EndIf
  174.             Set Error = $($R0)
  175.             Set from = end
  176.             Set to = end
  177.             GoTo NonFatalInfo
  178.         EndIf
  179.     Else
  180.         Set StartLabel = InstallAdapter
  181.         Set ActivateDetection = TRUE
  182.         Set OEM_ABANDON_OPTIONS = {}
  183.         Set OEM_ABANDON_SOFTWARE = FALSE
  184.         Set OEM_ABANDON_ON = TRUE
  185.         Set OEM_ABANDON_PPTP_SOTWARE = FALSE
  186.     EndIf
  187.     Debug-Output $(InfName)": =================================================="
  188.     Debug-Output $(InfName)": STF_CWDIR is: "$(!STF_CWDIR)
  189.     Debug-Output $(InfName)": STF_LANGUAGE is: "$(!STF_LANGUAGE)
  190.     Debug-Output $(InfName)": Option is: "$(Option)
  191.     Debug-Output $(InfName)": !STF_NCDETECT  is: "$(!STF_NCDETECT)
  192.     Debug-Output $(InfName)": !STF_NCOPTION  is: "$(!STF_NCOPTION)
  193.     Debug-Output $(InfName)": !STF_NCDETCARD is: "$(!STF_NCDETCARD)
  194.     Debug-Output $(InfName)": !STF_NCDETINFO is: "$(!STF_NCDETINFO)
  195.     Debug-Output $(InfName)": =================================================="
  196.     Set DetectedCard = FALSE
  197.     IfStr(i) $(ActivateDetection) != TRUE
  198.         GoTo $(StartLabel)
  199.     EndIf
  200.     Debug-Output $(InfName)": Calling Param_SetDefaults"
  201.     Shell $(ParamInf) Param_SetDefaults {}
  202.     IfStr(i) $(!STF_NCDETECT) == YES
  203.         IfStr(i) $(!STF_NCOPTION) == $(Option)
  204.            Set DetectedCard = TRUE
  205.            Debug-Output $(InfName)": Setting DetectedCard to TRUE"
  206.         EndIf
  207.     EndIf
  208.     Shell "" DebugConfiguration "After parameter querying"
  209.     Set from = FatalError
  210.     Set to = FatalError
  211.     GoTo $(StartLabel)
  212. InstallAdapter = +
  213.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  214.     IfStr $(KeyProduct) != $(KeyNull)
  215.         CloseRegKey $(KeyProduct)
  216.         IfStr(i) !(NTN_RegBase) == $(ProductKeyName)
  217.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  218.                $(ProductVersion)
  219.            IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  220.                Debug-Output $(InfName)": ShellCode error: cannot get an error string."
  221.                GoTo ShellCodeError
  222.            EndIf
  223.            GoTo end
  224.         Else
  225.            Shell $(UtilityInf), CardExistedDlg
  226.            IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  227.                Debug-Output $(InfName)": ShellCode error: cannot get an error string."
  228.                GoTo ShellCodeError
  229.            EndIf
  230.            IfStr(i) $($R1) != "OK"
  231.                Set CommonStatus = STATUS_USERCANCEL
  232.                GoTo end
  233.            EndIf
  234.            Set OldVersionExisted = $(TRUE)
  235.         EndIf
  236.     EndIf
  237.     Set CurrParamSettings = {}
  238.     IfStr(i) $(DetectedCard) != TRUE
  239.         GoTo AdapterSetup
  240.     EndIf
  241.     StartWait
  242.         Shell $(ParamInf) Param_QueryCard $(!STF_NCDETCARD)
  243.     EndWait
  244.     IfStr(i) $($R0) != STATUS_SUCCESSFUL
  245.         GoTo AdapterSetup
  246.     EndIf
  247.     Set DetectedParams = $($R1)
  248.     Debug-Output $(InfName)": Calling Param_SetDefaults to merge detected params"
  249.     Shell $(ParamInf) Param_SetDefaults $(DetectedParams)
  250.     GoTo AdapterSetup
  251. ConfigureAdapter = +
  252.     Read-Syms InvokeConfigureDlg$(!STF_LANGUAGE)
  253.     LoadLibrary "x" $(!STF_CWDDIR)raspptpc.dll RASPPTPDLGHANDLE
  254.     Debug-Output $(InfName)": Getting info from GetChassisConfiguration"
  255.     Debug-Output $(InfName)": NTN_InstallMode is "$(!NTN_InstallMode)
  256.     LibraryProcedure Result, $(RASPPTPDLGHANDLE), GetChassisConfiguration $(!NTN_InstallMode)
  257.     Set NumberOfLineDevices = *($(Result), 1)
  258.     Set AdapterNum = *($(Result), 2)
  259.     FreeLibrary $(RASPPTPDLGHANDLE)
  260.     ifstr(i) $(NumberOfLineDevices) != "EXITSETUP"
  261.     ifstr(i) $(NumberOfLineDevices) != "RASNOCHANGE"
  262.         Shell "" UpdateAddressList $(NumberOfLineDevices) $(AdapterNum) $(ProductSoftwareName) +
  263.                                        $(TapiMediaType)
  264.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  265.         Debug-Output "Cannot update address list for RAS"
  266.             goto ShellCodeError
  267.         endif
  268.     endif
  269.         Set CommonStatus = STATUS_SUCCESSFUL
  270.     Else
  271.         Set CommonStatus = STATUS_USERCANCEL
  272.     EndIf
  273.     goto end
  274. AdapterSetup = +
  275.     Shell "" DebugConfiguration "before Param_ParameterConfidence"
  276.     Shell $(ParamInf) Param_ParameterConfidence
  277.     IfStr(i) $($R0) != STATUS_SUCCESSFUL
  278.         Debug-Output $(InfName)": parameter confidence too low to bypass configuration"
  279.         Shell "" DebugConfiguration "before AdapterOptions"
  280.         GoTo AdapterOptions
  281.     EndIf
  282.     IfStr(i) $(DetectedCard) == TRUE
  283.         IfStr(i) $(!STF_INSTALL_MODE) != CUSTOM
  284.             Shell "" DebugConfiguration "before AdapterVerify"
  285.             GoTo AdapterVerify
  286.         EndIf
  287.     EndIf
  288. AdapterOptions = +
  289.     Shell "" DebugConfiguration "inside AdapterOptions"
  290.     Read-Syms FileDependentDlg$(!STF_LANGUAGE)
  291. AdapterVerify = +
  292.     Shell "" DebugConfiguration "inside AdapterVerify"
  293.     Shell "" DebugConfiguration "after running dialog"
  294.     IfStr(i) $(DetectedCard) != TRUE
  295.         Shell $(ParamInf) Param_SaveValues
  296.         Set NewParamSettings = $($R0)
  297.         IfStr(i) $(CurrParamSettings) == {}
  298.             Set DiffParamSettings = $(NewParamSettings)
  299.         Else
  300.             Shell $(ParamInf) Param_DiffValues $(CurrParamSettings)
  301.             Set DiffParamSettings = $($R0)
  302.         EndIf
  303.         Debug-Output $(InfName)": Calling Param_VerifyResources"
  304.         Shell $(ParamInf) Param_VerifyResources $(DiffParamSettings)
  305.         IfStr(i) $($R0) == STATUS_SUCCESSFUL
  306.             Debug-Output $(InfName)": Param_VerifyResources succeeded"
  307.             GoTo SkipOptions
  308.         EndIf
  309.     Else
  310.         Set CardVerifyIndex = $(!STF_NCDETCARD)
  311.         Debug-Output $(InfName)": Calling Param_VerifyCard"
  312.         Shell $(ParamInf) Param_VerifyCard $(!STF_NCDETCARD)
  313.         IfStr(i) $($R0) == STATUS_SUCCESSFUL
  314.             Debug-Output $(InfName)": Param_VerifyCard succeeded"
  315.             GoTo SkipOptions
  316.         EndIf
  317.     EndIf
  318.     Set from = AdapterOptions
  319.     Set to = SkipOptions
  320.     Shell $(UtilityInf),RegistryErrorString,VERIFY_WARNING
  321.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  322.         Debug-Output $(InfName)": ShellCode error: cannot get an error string."
  323.         GoTo ShellCodeError
  324.     EndIf
  325.     Set Error = $($R0)
  326.     GoTo WarningMsg
  327. SkipOptions =+
  328.     IfInt $(OldVersionExisted) == $(TRUE)
  329.         IfStr(i) $(!NTN_InstallMode) == configure
  330.             GoTo WriteParameters
  331.         EndIf
  332.     EndIf
  333.     StartWait
  334.     IfInt $(OldVersionExisted) == $(FALSE)
  335.         IfStr(i) $(!NTN_InstallMode) == "install"
  336.            IfStr(i) $(DoCopy) == "YES"
  337.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  338.               IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  339.                   GoTo ShellCodeError
  340.               Else-IfStr(i) $($R0) == STATUS_FAILED
  341.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  342.                   IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  343.                       GoTo ShellCodeError
  344.                   EndIf
  345.                   Set Error = $($R0)
  346.                   GoTo FatalError
  347.               Else-IfStr(i) $($R0) == STATUS_USERCANCEL
  348.                   GoTo SuccessfulOption
  349.               EndIf
  350.               Set SrcDir = $($R1)
  351.            EndIf
  352.            Install "Install-Option"
  353.            IfStr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  354.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  355.               IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  356.                   GoTo ShellCodeError
  357.               EndIf
  358.               Set Error = $($R0)
  359.               GoTo FatalError
  360.            EndIf
  361.         EndIf
  362.         Shell $(UtilityInf), InstallSoftwareProduct, $(Manufacturer),+
  363.               $(ProductRASPPTPName), $(InfName)
  364.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  365.               Debug-Output "InstallSoftware bombed out."
  366.               goto ShellCodeError
  367.         endif
  368.         set RegistryErrorIndex = $($R0)
  369.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  370.             Debug-Output "REGISTRY PROBLEM"
  371.             CloseRegKey $($R1)
  372.             CloseRegKey $($R2)
  373.             goto FatalRegistry
  374.         endif
  375.         Set SoftProductKey    = $($R1)
  376.         Set SoftNetRuleKey    = $($R2)
  377.         set NewValueList = +
  378.             {{Infname ,$(NoTitle),$(!REG_VT_SZ),$(InfName)},+
  379.              {SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(ProductRASPPTPSvcType)},+
  380.              {Title,$(NoTitle),$(!REG_VT_SZ), $(ProductRASPPTPTitle)},+
  381.              {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductRASPPTPDescription)},+
  382.              {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)},+
  383.              {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  384.              {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  385.              {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  386.         Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  387.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  388.             CloseRegKey $(SoftProductKey)
  389.             CloseRegKey $(SoftNetRuleKey)
  390.             goto ShellCodeError
  391.         endif
  392.         set RegistryErrorIndex = $($R0)
  393.         CloseRegKey $(SoftProductKey)
  394.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  395.            CloseRegKey $(SoftNetRuleKey)
  396.            goto FatalRegistry
  397.         endif
  398.         set NewValueList = +
  399.             {{class, $(NoTitle), $(!REG_VT_SZ), $(NetRuleRASPPTPClass)},+
  400.              {type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleRASPPTPType)},+
  401.              {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleRASPPTPUse)}, +
  402.              {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}, +
  403.              {Infname ,$(NoTitle),$(!REG_VT_SZ),$(InfName)}}
  404.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  405.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  406.             goto ShellCodeError
  407.         endif
  408.         set RegistryErrorIndex = $($R0)
  409.         CloseRegKey $(SoftNetRuleKey)
  410.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  411.             goto FatalRegistry
  412.         endif
  413.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  414.             $(ProductSoftwareName), +
  415.             $(ProductSoftwareName), +
  416.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  417.             $(ProductSoftwareImagePath), "kernelautostart", "NDIS", {}, "",+
  418.             $(RASPPTPMsgDLL)
  419.         Set OEM_ABANDON_SOFTWARE = TRUE
  420.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  421.             Debug-Output $(InfName)": ShellCode error"
  422.             GoTo ShellCodeError
  423.         EndIf
  424.         Set RegistryErrorIndex = $($R0)
  425.         Set KeyProduct      = $($R1)
  426.         Set SoftNetRulesKey = $($R2)
  427.         CloseRegKey $($R3)
  428.         CloseRegKey $($R4)
  429.         CloseRegKey $($R5)
  430.         IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  431.             EndWait
  432.             Debug-Output $(InfName)": Registry error: add software components"
  433.             CloseRegKey $(KeyProduct)
  434.             CloseRegKey $(SoftNetRulesKey)
  435.             GoTo FatalRegistry
  436.         EndIf
  437.         Set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  438.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  439.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  440.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  441.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  442.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  443.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  444.         Shell  $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
  445.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  446.             Debug-Output $(InfName)": ShellCode error."
  447.             GoTo ShellCodeError
  448.         EndIf
  449.         Set RegistryErrorIndex = $($R0)
  450.         IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  451.             EndWait
  452.             Debug-Output $(InfName)": Registry error: add value list."
  453.             CloseRegKey $(KeyProduct)
  454.             CloseRegKey $(SoftNetRulesKey)
  455.             GoTo FatalRegistry
  456.         EndIf
  457.         Set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  458.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  459.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  460.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  461.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(Bindable$(Option)Txt)}, +
  462.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  463.         Shell  $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  464.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  465.             Debug-Output $(InfName)": ShellCode error."
  466.             GoTo ShellCodeError
  467.         EndIf
  468.         Set RegistryErrorIndex = $($R0)
  469.         CloseRegKey $(KeyProduct)
  470.         CloseRegKey $(SoftNetRulesKey)
  471.         IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  472.             EndWait
  473.             Debug-Output $(InfName)": Resgitry error: add value list."
  474.             GoTo FatalRegistry
  475.         EndIf
  476.         Shell "" AddServiceDependency $(ProductSoftwareName) $(PPTPProductSoftwareName)
  477.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  478.             $(PPTPProductSoftwareName), +
  479.             $(PPTPProductSoftwareName), +
  480.             $(PPTPProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  481.             $(PPTPProductSoftwareImagePath), "kernelauto", "NDIS", {}, "",+
  482.             $(RASPPTPMsgDLL)
  483.         Set OEM_ABANDON_PPTP_SOFTWARE = TRUE
  484.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  485.             Debug-Output $(InfName)": ShellCode error"
  486.             GoTo ShellCodeError
  487.         EndIf
  488.         Set RegistryErrorIndex = $($R0)
  489.         Set PPTPKeyProduct      = $($R1)
  490.         Set PPTPSoftNetRulesKey = $($R2)
  491.         CloseRegKey $($R3)
  492.         CloseRegKey $($R4)
  493.         CloseRegKey $($R5)
  494.         IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  495.             EndWait
  496.             Debug-Output $(InfName)": Registry error: add sman software components"
  497.             CloseRegKey $(PPTPKeyProduct)
  498.             CloseRegKey $(PPTPSoftNetRulesKey)
  499.             GoTo FatalRegistry
  500.         EndIf
  501.         Set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  502.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(PPTPProductMajorVersion)},+
  503.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(PPTPProductMinorVersion)},+
  504.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(PPTPProductSoftwareTitle)},+
  505.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(PPTPProductSoftwareDescription)},+
  506.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(PPTPProductSoftwareName)},+
  507.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  508.         Shell  $(UtilityInf), AddValueList, $(PPTPKeyProduct), $(NewValueList)
  509.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  510.             Debug-Output $(InfName)": ShellCode error."
  511.             GoTo ShellCodeError
  512.         EndIf
  513.         Set RegistryErrorIndex = $($R0)
  514.         IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  515.             EndWait
  516.             Debug-Output $(InfName)": Registry error: add value list."
  517.             CloseRegKey $(PPTPKeyProduct)
  518.             CloseRegKey $(PPTPSoftNetRulesKey)
  519.             GoTo FatalRegistry
  520.         EndIf
  521.         Shell "" InstallRASPPTPFDriver
  522.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  523.              Debug-Output "Error shelling InstallRASPPTPFDriver"
  524.              goto ShellCodeError
  525.         endif
  526.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  527.              Debug-Output "Error from InstallRASPPTPFDriver"
  528.              goto end
  529.         endif
  530.     EndIf
  531.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  532.     IfInt $($R4) != -1
  533.         Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  534.     EndIf
  535.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  536.         Debug-Output $(InfName)": Cannot add hardware component"
  537.         GoTo ShellCodeError
  538.     EndIf
  539.     Set RegistryErrorIndex = $($R0)
  540.     IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  541.         EndWait
  542.         Debug-Output $(InfName)": Registry error: add hardware component"
  543.         CloseRegKey $($R1)
  544.         CloseRegKey $($R2)
  545.         CloseRegKey $($R3)
  546.         GoTo FatalRegistry
  547.     EndIf
  548.     Set KeyParameters = $($R3)
  549.     Set KeyAdapterRules = $($R2)
  550.     Set AdapterNumber = $($R4)
  551.     Set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  552.                        {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
  553.                        {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
  554.                        {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  555.                        {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  556.                        {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)},+
  557.                        {Hidden,$(NoTitle),$(!REG_VT_DWORD),1}}
  558.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  559.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  560.         Debug-Output $(InfName)": ShellCode error"
  561.         GoTo ShellCodeError
  562.     EndIf
  563.     CloseRegKey $($R1)
  564.     Set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  565.     Set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  566.     Set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+
  567.                         {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  568.                         {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)}, +
  569.                         {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  570.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  571.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  572.         Debug-Output $(InfName)": ShellCode error."
  573.         GoTo ShellCodeError
  574.     EndIf
  575.     Set RegistryErrorIndex = $($R0)
  576.     IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  577.         EndWait
  578.         Debug-Output $(InfName)": Registry error: add value list."
  579.         CloseRegKey $(KeyParameters)
  580.         CloseRegKey $(KeyAdapterRules)
  581.         GoTo FatalRegistry
  582.     EndIf
  583.     CloseRegKey $(KeyAdapterRules)
  584.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  585.     IfStr $(KeyProduct) != $(KeyNull)
  586.         SetRegValue $(KeyProduct) {NetCard,$(NoTitle),$(!REG_VT_DWORD),$(AdapterNumber)}
  587.         CloseRegKey $(KeyProduct)
  588.     EndIf
  589.     GoTo WriteParameters
  590. WriteParameters = +
  591.     LoadLibrary "x" $(!STF_CWDDIR)raspptpc.dll RASPPTPDLGHANDLE
  592.     Debug-Output $(InfName)": Getting info from GetChassisConfiguration"
  593.     Debug-Output "!STF_UNATTENDED is "$(!STF_UNATTENDED)
  594.     Debug-Output "!STF_GUI_UNATTENDED is "$(!STF_GUI_UNATTENDED)
  595.     Debug-Output "!STF_UNATTENDED_SECTION is "$(!STF_UNATTENDED_SECTION)
  596.     LibraryProcedure Result, $(RASPPTPDLGHANDLE), GetChassisConfiguration $(!NTN_InstallMode) +
  597.                              $(!STF_GUI_UNATTENDED) $(!STF_UNATTENDED) $(!STF_UNATTENDED_SECTION)
  598.     Debug-Output $(InfName)": Result value is :"$(Result)
  599.     Set NumberOfLineDevices = *($(Result), 1)
  600.     FreeLibrary $(RASPPTPDLGHANDLE)
  601.     ifstr(i) $(NumberOfLineDevices) == "EXITSETUP"
  602.         Read-Syms InvokeCancelDlg$(!STF_LANGUAGE)
  603.         Debug-Output $(InfName)": GetChassisConfiguration User selected ExitSetup"
  604.         Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", $(InvokeCancelMsg)
  605.         GoTo SetFailed
  606.     endif
  607.     Debug-Output $(InfName)": Number Of Line Devices are :"$(NumberOfLineDevices)
  608.     Shell "" CreateFullTapiAddrList $(AdapterNumber)
  609.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  610.         Debug-Output "Cannot create the TAPI address list"
  611.         goto ShellCodeError
  612.     endif
  613.     Set FullTapiAddrList = $($R0)
  614.     Set TapiAddressList = {}
  615.     ForListDo $(FullTapiAddrList)
  616.         Set CurListItem = $($)
  617.         Set CurListNumber = $(#)
  618.         IfInt $(CurListNumber) <= $(NumberOfLineDevices)
  619.             Set TapiAddressList = >($(TapiAddressList), $(CurListItem))
  620.         Endif
  621.     EndForListDo
  622.     Debug-Output $(InfName)": Modified Tapi Address List is :"$(TapiAddressList)
  623.     Set NewValueList = {+
  624.                        {AddressList,$(NoTitle),$(!REG_VT_MULTI_SZ),$(TapiAddressList)},+
  625.                        {DeviceName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  626.                        {LineType,$(NoTitle),$(!REG_VT_DWORD),$(LineType)},+
  627.                        {MediaType,$(NoTitle),$(!REG_VT_SZ),$(TapiMediaType)},+
  628.                        }
  629.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  630.     CloseRegKey $(KeyParameters)
  631.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  632.         Debug-Output $(InfName)": ShellCode error."
  633.         GoTo ShellCodeError
  634.     EndIf
  635.     Set RegistryErrorIndex = $($R0)
  636.     IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  637.         Debug-Output $(InfName)": Registry error: Add value list"
  638.         GoTo FatalRegistry
  639.     EndIf
  640.     IfStr(i) $(!NTN_InstallMode) == configure
  641.         GoTo SuccessfulOption
  642.     EndIf
  643.     OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\TcpIp\Parameters" $(MAXIMUM_ALLOWED) TcpKey
  644.     IfStr(i) $(TcpKey) != ""
  645.         Debug-Output $(InfName)": setting tcpip\parameters\PPTPTcpMaxDataRetransmissions to 9"
  646.         SetRegValue $(TcpKey) {PPTPTcpMaxDataRetransmissions,$(NoTitle),$(!REG_VT_DWORD), 9}
  647.         CloseRegKey $(TcpKey)
  648.     Else
  649.         Debug-Output $(InfName)": Registry error: can't open services\tcpip key"
  650.     EndIf
  651.     OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft" $(MAXIMUM_ALLOWED) BaseKey
  652.     shell "" HtCreateRegKey $(BaseKey) "TAPI DEVICES\RASPPTPM"
  653.     IfStr(i) $($R0) != NO_ERROR
  654.         Debug-Output $(InfName)": Error creating registry key!"
  655.         GoTo FatalRegistry
  656.     EndIf
  657.     Set TapiDeviceKey = $($R1)
  658.     Set NewValueList = {+
  659.                        {Address,$(NoTitle),$(!REG_VT_MULTI_SZ),$(TapiAddressList)},+
  660.                        {"Media Type",$(NoTitle),$(!REG_VT_SZ),$(TapiMediaType)}}
  661.     Shell  $(UtilityInf), AddValueList, $(TapiDeviceKey), $(NewValueList)
  662.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  663.         Debug-Output $(InfName)": ShellCode error."
  664.         GoTo ShellCodeError
  665.     EndIf
  666.     Set RegistryErrorIndex = $($R0)
  667.     IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  668.         Debug-Output $(InfName)": Registry error: Add value list"
  669.         GoTo FatalRegistry
  670.     EndIf
  671.     CloseRegKey $(TapiDeviceKey)
  672.     CloseRegKey $(BaseKey)
  673.     ifstr(i) $(!STF_INSTALL_MODE) == EXPRESS
  674.          GoTo InstallRas
  675.     Else
  676.          Shell "" InstallTCPIPIfNotInstalled $(SrcDir) $(AddCopy) $(DoCopy) $(DoConfig)
  677.          ifint $($ShellCode) != $(!SHELL_CODE_OK)
  678.                  Debug-Output "Cannot install TCP/IP if not already installed"
  679.              goto ShellCodeError
  680.          endif
  681.          ifstr(i) $($R0) != STATUS_SUCCESSFUL
  682.              Debug-Output "Error installing TCP/IP"
  683.              set Error = "Error installing TCP/IP"
  684.              goto FatalError
  685.          endif
  686.          Shell "" DebugGlobalFlags "After TCP/IP"
  687.     EndIf
  688. InstallRas = +
  689.     ifstr(i) $(!STF_INSTALL_MODE) == EXPRESS
  690.          GoTo SuccessfulOption
  691.     Else
  692.          Read-Syms InvokeRasDlg$(!STF_LANGUAGE)
  693.          Shell "oemnsvra.inf" CheckRasInstalled
  694.          IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  695.              Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf"
  696.              Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE),  +
  697.                      "STATUS", $(InvokeRasError)
  698.              IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  699.                  GoTo ShellCodeError
  700.              EndIf
  701.              GoTo RASSetup
  702.          EndIf
  703.          Set RasInstalled = $($R0)
  704.          Debug-Output $(InfName)": Is RAS Installed? "$(RasInstalled)
  705.          IfStr(i) $(RasInstalled) == FALSE
  706.              Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", +
  707.                      $(InvokeRasSetupMsg)
  708.              IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  709.                  GoTo RASSetup
  710.              EndIf
  711.          Else
  712.              Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", +
  713.                      $(InvokeRasConfigMsg)
  714.              IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  715.                  GoTo RASSetup
  716.              EndIf
  717.          EndIf
  718.          EndWait
  719.          GoTo RASSetup
  720.     Endif
  721. RASSetup =+
  722.     Set AddCopy  = YES
  723.     Set DoCopy   = YES
  724.     Set DoConfig = YES
  725.     IfStr(i) $(RasInstalled) == TRUE
  726.        Set SaveNTN_InstallMode = $(!NTN_InstallMode)
  727.        Set !NTN_InstallMode = configure
  728.     EndIf
  729.     Set PREV_SRCDIR = $(!STF_SRCDIR_OVERRIDE)
  730.     Set !STF_SRCDIR_OVERRIDE = $(SrcDir)
  731.     Shell "oemnsvra.inf" InstallOption $(!STF_LANGUAGE) "RAS" $(SrcDir) $(AddCopy) $(DoCopy) $(DoConfig)
  732.     set !STF_SRCDIR_OVERRIDE = $(PREV_SRCDIR)
  733.     IfStr(i) $(RasInstalled) == TRUE
  734.             Set !NTN_InstallMode = $(SaveNTN_InstallMode)
  735.     EndIf
  736.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  737.         Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf"
  738.         Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS",  +
  739.                 $(InvokeRasError)
  740.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  741.             GoTo ShellCodeError
  742.         EndIf
  743.         GoTo SuccessfulOption
  744.     EndIf
  745.     EndWait
  746.     GoTo SuccessfulOption
  747. BindingAdapter =+
  748.     Set Error = "Binding: Sorry, not yet implemented."
  749.     GoTo FatalError
  750. RemoveAdapter = +
  751.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  752.     IfStr $(KeyProduct) != $(KeyNull)
  753.         GetRegValue $(KeyProduct),"NetCard", NetCardInfo
  754.         Set NetCard = *($(NetCardInfo), 4)
  755.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  756.             $(ProductSoftwareName), $(NetworkCardKeyName)"\"$(NetCard)
  757.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  758.             Debug-Output $(InfName)": ShellCode error"
  759.             GoTo ShellCodeError
  760.         EndIf
  761.         Set RegistryErrorIndex = $($R0)
  762.         IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  763.             GoTo FatalRegistry
  764.         EndIf
  765.     EndIf
  766.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  767.         $(PPTPProductSoftwareName)
  768.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  769.         Debug-Output $(InfName)": ShellCode error"
  770.         GoTo ShellCodeError
  771.     EndIf
  772.     Set RegistryErrorIndex = $($R0)
  773.     IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  774.         GoTo FatalRegistry
  775.     EndIf
  776.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyBase) +
  777.                $(MAXIMUM_ALLOWED) ProductKey
  778.     Ifstr $(ProductKey) == $(KeyNull)
  779.        Debug-Output "OEMNXPPP.INF: could not open Software product key"
  780.     else
  781.        DeleteRegTree $(ProductKey) $(ProductRASPPTPName)
  782.        CloseRegKey $(ProductKey)
  783.     endif
  784.     Shell "" RemoveRASPPTPFDriver
  785.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  786.          Debug-Output "Error shelling RemoveRASPPTPFDriver"
  787.          goto ShellCodeError
  788.     endif
  789.     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  790.          Debug-Output "Error from RemoveRASPPTPFDriver"
  791.          goto end
  792.     endif
  793.     OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\TAPI DEVICES" $(MAXIMUM_ALLOWED) BaseKey
  794.     IfStr $(BaseKey) != $(KeyNull)
  795.         DeleteRegTree $(BaseKey) $(ProductSoftwareName)
  796.     EndIf
  797.     OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\TcpIp\Parameters" $(MAXIMUM_ALLOWED) TcpKey
  798.     IfStr(i) $(TcpKey) != ""
  799.         Debug-Output $(InfName)": removing tcpip\parameters\PPTPTcpMaxDataRetransmissions value"
  800.     DeleteRegValue $(TcpKey) "PPTPTcpMaxDataRetransmissions"
  801.         CloseRegKey $(TcpKey)
  802.     Else
  803.         Debug-Output $(InfName)": Registry error: can't open services\tcpip key"
  804.     EndIf
  805.     Read-Syms InvokeRasDlg$(!STF_LANGUAGE)
  806.     Shell "oemnsvra.inf" CheckRasInstalled
  807.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  808.         Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf"
  809.         Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE),  +
  810.                 "STATUS", $(InvokeRasError)
  811.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  812.             GoTo ShellCodeError
  813.         EndIf
  814.         GoTo RASSetup2
  815.     EndIf
  816.     Set RasInstalled = $($R0)
  817.     Debug-Output $(InfName)": Is RAS Installed? "$(RasInstalled)
  818.     IfStr(i) $(RasInstalled) == FALSE
  819.         goto end
  820.     Else
  821.         Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", +
  822.                 $(InvokeRasConfigMsg2)
  823.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  824.             GoTo RASSetup2
  825.         EndIf
  826.     EndIf
  827.     EndWait
  828.     GoTo RASSetup2
  829. RASSetup2 =+
  830.     Set AddCopy  = NO
  831.     Set DoCopy   = NO
  832.     Set DoConfig = NO
  833.     Set SaveNTN_InstallMode = $(!NTN_InstallMode)
  834.     Set !NTN_InstallMode = configure
  835.     Shell "oemnsvra.inf" InstallOption $(!STF_LANGUAGE) "RAS" $(SrcDir) $(AddCopy) $(DoCopy) $(DoConfig)
  836.     Set !NTN_InstallMode = $(SaveNTN_InstallMode)
  837.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  838.         Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf"
  839.         Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS",  +
  840.                 $(InvokeRasError)
  841.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  842.             GoTo ShellCodeError
  843.         EndIf
  844.         GoTo end
  845.     EndIf
  846.     GoTo end
  847. UpgradeSoftware = +
  848.         Debug-Output $(InfName)": comes into 1st part of upgrade"
  849.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  850.         IfStr $(KeyProduct) != $(KeyNull)
  851.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  852.             Set Version = *($(VersionInfo), 4)
  853.             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  854.             IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  855.                 Debug-Output $(InfName)": ShellCode error"
  856.                 GoTo ShellCodeError
  857.             EndIf
  858.             Set !UG_Filename = $($R0)
  859.             IfStr(i) $(!UG_Filename) != ""
  860.                 Debug-Output $(InfName)": starts to install"
  861.                 install "Install-Update"
  862.                 IfStr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  863.                     GoTo FatalError
  864.                 EndIf
  865.                 LibraryProcedure Result, $(!LIBHANDLE), SetupChangeServiceConfig, $(!PPTPFProductName) +
  866.                                          $(SERVICE_NO_CHANGE), $(SERVICE_NO_CHANGE), $(SERVICE_NO_CHANGE), +
  867.                                          "", "TDI", "", "", "", ""
  868.             EndIf
  869.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)}
  870.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)}
  871.             IfInt $(Version) != $(ProductVersion)
  872.             EndIf
  873.             CloseRegKey $(KeyProduct)
  874.         Else
  875.             GoTo FatalRegistry
  876.         EndIf
  877.         Debug-Output $(InfName)": comes into PPTPE part of upgrade"
  878.         OpenRegKey $(!REG_H_LOCAL) "" $(PPTPProductKeyName) $(MAXIMUM_ALLOWED) PPTPKeyProduct
  879.         IfStr $(PPTPKeyProduct) != $(KeyNull)
  880.             SetRegValue $(PPTPKeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(PPTPProductMajorVersion)}
  881.             SetRegValue $(PPTPKeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(PPTPProductMinorVersion)}
  882.             CloseRegKey $(PPTPKeyProduct)
  883.         Else
  884.             GoTo FatalRegistry
  885.         EndIf
  886.         Debug-Output $(InfName)": comes into PPTP part of upgrade"
  887.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductRASPPTPKeyName) $(MAXIMUM_ALLOWED) PPTPKeyProduct
  888.         IfStr $(PPTPKeyProduct) != $(KeyNull)
  889.             SetRegValue $(PPTPKeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(PPTPProductMajorVersion)}
  890.             SetRegValue $(PPTPKeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(PPTPProductMinorVersion)}
  891.             SetRegValue $(PPTPKeyProduct) {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductRASPPTPDescription)}
  892.             SetRegValue $(PPTPKeyProduct) {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)}
  893.             CloseRegKey $(PPTPKeyProduct)
  894.         Else
  895.             GoTo FatalRegistry
  896.         EndIf
  897.     GoTo end
  898. SuccessfulOption = +
  899.     GoTo end
  900. Abandon = +
  901.     ForListDo $(OEM_ABANDON_OPTIONS)
  902.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  903.             $(ProductSoftwareName), $($)
  904.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  905.             Debug-Output $(InfName)": ShellCode error"
  906.             GoTo ShellCodeError
  907.         EndIf
  908.         Set RegistryErrorIndex = $($R0)
  909.         IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  910.             GoTo FatalRegistry
  911.         EndIf
  912.     EndForListDo
  913.     IfStr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  914.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  915.             $(ProductSoftwareName), FALSE
  916.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  917.             Debug-Output $(InfName)": ShellCode error"
  918.             GoTo ShellCodeError
  919.         EndIf
  920.         Set RegistryErrorIndex = $($R0)
  921.         IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  922.             GoTo FatalRegistry
  923.         EndIf
  924.     EndIf
  925.     IfStr(i) $(OEM_ABANDON_PPTP_SOFTWARE) == TRUE
  926.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  927.             $(PPTPProductSoftwareName), FALSE
  928.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  929.             Debug-Output $(InfName)": ShellCode error"
  930.             GoTo ShellCodeError
  931.         EndIf
  932.         Set RegistryErrorIndex = $($R0)
  933.         IfStr(i) $(RegistryErrorIndex) != NO_ERROR
  934.             GoTo FatalRegistry
  935.         EndIf
  936.     EndIf
  937.     GoTo end
  938. WarningMsg = +
  939.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  940.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  941.         GoTo ShellCodeError
  942.     EndIf
  943.     IfStr(i) $($R1) == "OK"
  944.         GoTo $(to)
  945.     Else-IfStr(i) $($R1) == "CANCEL"
  946.         GoTo $(from)
  947.     EndIf
  948.     GoTo end
  949. NonFatalInfo = +
  950.     Set Severity = STATUS
  951.     Set CommonStatus = STATUS_USERCANCEL
  952.     IfStr(i) $(Error) == ""
  953.         Set Severity = NONFATAL
  954.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  955.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  956.             GoTo ShellCodeError
  957.         EndIf
  958.         Set Error = $($R0)
  959.     EndIf
  960.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  961.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  962.         GoTo ShellCodeError
  963.     EndIf
  964.     IfStr(i) $($R1) == "OK"
  965.         GoTo $(from)
  966.     EndIf
  967.     GoTo end
  968. FatalRegistry = +
  969.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  970.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  971.         GoTo ShellCodeError
  972.     EndIf
  973.     Set Error = $($R0)
  974.     GoTo FatalError
  975. FatalDetect = +
  976.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  977.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  978.         Debug-Output $(InfName)": ShellCode error: cannot get an error string."
  979.         GoTo ShellCodeError
  980.     EndIf
  981.     Set Error = $($R0)
  982.     GoTo FatalError
  983. FatalError = +
  984.     IfStr(i) $(Error) == ""
  985.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  986.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  987.             GoTo ShellCodeError
  988.         EndIf
  989.         Set Error = $($R0)
  990.     EndIf
  991.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  992.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  993.         GoTo ShellCodeError
  994.     EndIf
  995.     GoTo SetFailed
  996. ShellCodeError = +
  997.     Set DlgType      = "MessageBox"
  998.     Set STF_MB_TITLE = $(ShellCodeErrorTitle)
  999.     Set STF_MB_TEXT  = $(ShellCodeErrorText)
  1000.     Set STF_MB_TYPE  = 1
  1001.     Set STF_MB_ICON  = 3
  1002.     Set STF_MB_DEF   = 1
  1003.     UI Start "Error Message"
  1004.     GoTo SetFailed
  1005. SetFailed = +
  1006.     Set CommonStatus = STATUS_FAILED
  1007.     IfStr(i) $(OEM_ABANDON_ON) == TRUE
  1008.         Set OEM_ABANDON_ON = FALSE
  1009.         GoTo Abandon
  1010.     EndIf
  1011.     GoTo end
  1012. end = +
  1013.     Return $(CommonStatus)
  1014. [HtCreateRegKey]
  1015.     Debug-Output $(InfName)": Entering [HtCreateRegKey]"
  1016.     Set ECR_Result          = NO_ERROR
  1017.     Set ECR_BaseKeyHandle   = $($0)
  1018.     Set ECR_NewPath         = $($1)
  1019.     Set KeyNull             = ""
  1020.     Set MAXIMUM_ALLOWED     = 33554432
  1021.     Debug-Output $(InfName)": HtCreateRegKey - ECR_BaseKeyHandle = "$(ECR_BaseKeyHandle)
  1022.     Debug-Output $(InfName)":                  ECR_NewPath       = "$(ECR_NewPath)
  1023.     Debug-Output $(InfName)":                  MAXIMUM_ALLOWED   = "$(MAXIMUM_ALLOWED)
  1024.     Debug-Output $(InfName)":                  KeyNull           = "$(KeyNull)
  1025.     OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_NewPath) $(MAXIMUM_ALLOWED) +
  1026.                ECR_BaseKey
  1027.     Debug-Output $(InfName)": ECR_BaseKey = "$(ECR_BaseKey)
  1028.     Debug-Output $(InfName)":     OpenRegKey returned "$($R0)
  1029.     IfStr $(ECR_BaseKey) == $(KeyNull)
  1030.         Debug-Output $(InfName)": ECR_BaseKey == KeyNull"
  1031.     Else
  1032.         Debug-Output $(InfName)": ECR_BaseKey != KeyNull"
  1033.         Set ECR_KeyHandle = $(ECR_BaseKey)
  1034.         GoTo  ECR_Return
  1035.     EndIf
  1036.     Set ECR_TmpPath = ""
  1037.     Split-String $(ECR_NewPath) "\" ECR_PList
  1038.     Debug-Output $(InfName)": ECR_PList = "$(ECR_PList)
  1039.     ForListDo $(ECR_PList)
  1040.         IfStr(i) $($) != "\"
  1041.             IfInt $(#) == 1
  1042.                 Set ECR_TmpPath = $($)
  1043.             Else
  1044.                 Set ECR_TmpPath = $(ECR_TmpPath)"\"$($)
  1045.             EndIf
  1046.             Debug-Output $(InfName)": Determining if "$(ECR_TmpPath)" exists"
  1047.             OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_TmpPath) $(MAXIMUM_ALLOWED) ECR_BaseKey
  1048.             IfStr $(ECR_BaseKey) == $(KeyNull)
  1049.                 Debug-Output $(InfName)": Creating "$(ECR_TmpPath)
  1050.                 CreateRegKey $(ECR_BaseKeyHandle)  {$(ECR_TmpPath),0,GenericClass} "" $(MAXIMUM_ALLOWED) "" ECR_KeyHandle
  1051.                 IfStr(i) $(ECR_KeyHandle) == $(KeyNull)
  1052.                     Set ECR_Result = $($R0)
  1053.                     GoTo ECR_Return
  1054.                 EndIf
  1055.             EndIf
  1056.         EndIf
  1057.     EndForListDo
  1058. ECR_Return = +
  1059.     Return $(ECR_Result) $(ECR_KeyHandle)
  1060. [InstallTCPIPIfNotInstalled]
  1061.     Debug-Output $(InfName)"InstallTCPIPIfNotInstalled entry "
  1062.     Debug-Output $(InfName)"!NTN_ServiceBase is "$(!NTN_ServiceBase)
  1063.     set SrcDir   = $($0)
  1064.     set AddCopy  = $($1)
  1065.     set DoCopy   = $($2)
  1066.     set DoConfig = $($3)
  1067.     Read-Syms InvokeTCPIPDlg$(!STF_LANGUAGE)
  1068.     set TcpIpKeyName      = $(!NTN_ServiceBase)"\TcpIp"
  1069.     Set KeyNull        =    ""
  1070.     Set status = STATUS_FAILED
  1071.     Set TcpIpInstalled   = FALSE
  1072.     Set MAXIMUM_ALLOWED = 33554432
  1073.     set Protocol = "TCPIP"
  1074.     set KeyService = $(KeyNull)
  1075.     set DeleteFlag = 0
  1076.     set DeleteFlagInfo = {}
  1077.     OpenRegKey $(!REG_H_LOCAL) "" $(TcpIpKeyName) $(MAXIMUM_ALLOWED) KeyService
  1078.     Ifstr(i) $(KeyService) != $(KeyNull)
  1079.         GetRegValue $(KeyService),"DeleteFlag", DeleteFlagInfo
  1080.         set DeleteFlag = *($(DeleteFlagInfo), 4)
  1081.         ifint $(DeleteFlag) != 1
  1082.             set TcpIpInstalled = TRUE
  1083.         endif
  1084.         CloseRegKey $(KeyService)
  1085.     endif
  1086.     Debug-Output $(InfName)"TCP/IP Installed? "$(TcpIpInstalled)
  1087.     Ifstr(i) $(TcpIpInstalled) == "FALSE"
  1088.         Debug-Output $(InfName)"Installing TCP/IP"
  1089.         Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", +
  1090.             $(InvokeTCPSetupMsg)
  1091.         set InvokedByRas = FALSE
  1092.         Debug-Output $(InfName)": resetting stf_srcdir_override flag"
  1093.         Set PREV_SRCDIR = $(!STF_SRCDIR_OVERRIDE)
  1094.         Set !STF_SRCDIR_OVERRIDE = $(SrcDir)
  1095.         Shell "oemnxptc.inf" InstallOption $(!STF_LANGUAGE) "TC" $(SrcDir) $(AddCopy) $(DoCopy) $(DoConfig) $(InvokedByRas)
  1096.         set !STF_SRCDIR_OVERRIDE = $(PREV_SRCDIR)
  1097.         Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1098.             Debug-Output $(InfName)"SHELL ERROR! during TCP/IP installation"
  1099.             Goto InstallTCPEscape
  1100.         Endif
  1101.         Set status = $($R0)
  1102.         Ifstr(i) $(status) != STATUS_SUCCESSFUL
  1103.             Ifstr(i) $(status) != STATUS_USERCANCEL
  1104.                 Debug-Output $(InfName)"oemnxptc.inf  returned "$(status)
  1105.                 Goto InstallTCPEscape
  1106.             Endif
  1107.         Endif
  1108.     Else
  1109.         set status = STATUS_SUCCESSFUL
  1110.     Endif
  1111. InstallTCPEscape = +
  1112.     set RetStatus = $(status)
  1113.     return $(RetStatus)
  1114. [AddUSRMediaGroupToServiceGroupOrder]
  1115.     Debug-Output $(InfName)": Entering [AddUSRMediaGroupToServiceGroupOrder]"
  1116.     Set MAXIMUM_ALLOWED     = 33554432
  1117.     Set KeyNull             = ""
  1118.     Read-Syms SMANFileConstants
  1119.     set GroupOrderName = "SYSTEM\CurrentControlSet\Control\ServiceGroupOrder"
  1120.     OpenRegKey $(!REG_H_LOCAL) "" $(GroupOrderName) $(MAXIMUM_ALLOWED) KeyGroup
  1121.     set OldList = {}
  1122.     Ifstr(i) $(KeyGroup) != $(KeyNull)
  1123.         GetRegValue  $(KeyGroup) "List" TmpList
  1124.         ifint $(RegLastError) == 0
  1125.             ForListDo *($(TmpList), 4)
  1126.                 set OldList = >($(OldList), $($))
  1127.             EndForListDo
  1128.         endif
  1129.         Debug-Output "AddUSRMediaGroupToServiceGroupOrder current list "$(OldList)
  1130.         Ifcontains(i) $(PPTPGroupName) not-in $(OldList)
  1131.             set NewGroupList = {}
  1132.             ForListDo $(OldList)
  1133.                 ifstr(i) $($) == "NDIS"
  1134.                     set NewGroupList = >($(NewGroupList), $(PPTPGroupName))
  1135.                 endif
  1136.                 set NewGroupList = >($(NewGroupList), $($))
  1137.              EndForListDo
  1138.             Debug-Output "AddUSRMediaGroupToServiceGroupOrder new list "$(NewGroupList)
  1139.             SetRegValue $(KeyGroup) {List, 0,$(!REG_VT_MULTI_SZ),$(NewGroupList)}
  1140.         endif
  1141.         CloseRegKey $(KeyGroup)
  1142.     else
  1143.         Debug-Output "AddUSRMediaGroupToServiceGroupOrder error opening ServiceGroupOrder key."
  1144.         Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", "ServiceGroupOrder Update Failed"
  1145.     endif
  1146.     return
  1147. [UpdateAddressList]
  1148.     Debug-Output $(InfName)": Entering [UpdateAddressList]"
  1149.     Set NumberLineDevices = $($0)
  1150.     Set AdapNum = $($1)
  1151.     Set DriverName = $($2)
  1152.     Set MediaType = $($3)
  1153.     Set MAXIMUM_ALLOWED     = 33554432
  1154.     Set KeyNull             = ""
  1155.     Debug-Output $(InfName)": number of line devices received value "$(NumberLineDevices)
  1156.     Debug-Output $(InfName)": adapter number received value "$(AdapNum)
  1157.     Debug-Output $(InfName)": driver name received value "$(DriverName)
  1158.     Shell "" CreateFullTapiAddrList $(AdapNum)
  1159.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1160.         Debug-Output "Cannot create the new TAPI address list"
  1161.         goto ShellCodeError
  1162.     endif
  1163.     Set NewTapiAddrList = $($R0)
  1164.     Set TapiAddressList = {}
  1165.     ForListDo $(NewTapiAddrList)
  1166.         Set CurListItem = $($)
  1167.         Set CurListNumber = $(#)
  1168.         IfInt $(CurListNumber) <= $(NumberLineDevices)
  1169.             Set TapiAddressList = >($(TapiAddressList), $(CurListItem))
  1170.         Endif
  1171.     EndForListDo
  1172.     Debug-Output $(InfName)": Modified new Tapi Address List is :"$(TapiAddressList)
  1173.     set RASPPTPAddress = "SYSTEM\CurrentControlSet\Services\"$(DriverName)$(AdapNum)"\Parameters"
  1174.     Debug-Output $(InfName)": RASPPTPAddress is "$(RASPPTPAddress)
  1175.     OpenRegKey $(!REG_H_LOCAL) "" $(RASPPTPAddress) $(MAXIMUM_ALLOWED) KeyParam
  1176.     Debug-Output $(InfName)": keyparam value is "$(KeyParam)
  1177.     Ifstr(i) $(KeyParam) != $(KeyNull)
  1178.     Debug-Output $(InfName)": entering to set usrwan2 value"
  1179.     DeleteRegValue $(KeyParam) "AddressList"
  1180.         SetRegValue $(KeyParam) {AddressList, 0,$(!REG_VT_MULTI_SZ),$(TapiAddressList)}
  1181.     CloseRegKey $(KeyParam)
  1182.     EndIf
  1183.     OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft" $(MAXIMUM_ALLOWED) BaseKey
  1184.     Shell "" HtCreateRegKey $(BaseKey) "TAPI DEVICES\RASPPTPM"
  1185.     IfStr(i) $($R0) != NO_ERROR
  1186.         Debug-Output $(InfName)": Error creating registry key!"
  1187.         GoTo FatalRegistry
  1188.     EndIf
  1189.     Set TapiDeviceKey = $($R1)
  1190.     DeleteRegValue $(TapiDeviceKey) "Address"
  1191.     DeleteRegValue $(TapiDeviceKey) "Media Type"
  1192.     SetRegValue $(TapiDeviceKey) {Address, 0,$(!REG_VT_MULTI_SZ),$(TapiAddressList)}
  1193.     SetRegValue $(TapiDeviceKey) {"Media Type", 0,$(!REG_VT_SZ),$(MediaType)}
  1194.     CloseRegKey $(TapiDeviceKey)
  1195.     CloseRegKey $(BaseKey)
  1196.     Read-Syms InvokeRasDlg$(!STF_LANGUAGE)
  1197.     Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", +
  1198.         $(InvokeRasConfigMsg)
  1199.     Set AddCopy  = YES
  1200.     Set DoCopy   = YES
  1201.     Set DoConfig = YES
  1202.     Set SaveNTN_InstallMode = $(!NTN_InstallMode)
  1203.     Set !NTN_InstallMode = configure
  1204.     Shell "oemnsvra.inf" InstallOption $(!STF_LANGUAGE) "RAS" "" $(AddCopy) $(DoCopy) $(DoConfig)
  1205.     Set !NTN_InstallMode = $(SaveNTN_InstallMode)
  1206.     IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  1207.         Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf"
  1208.         Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS",  +
  1209.                 $(InvokeRasError)
  1210.         IfInt $($ShellCode) != $(!SHELL_CODE_OK)
  1211.             GoTo ShellCodeError
  1212.         EndIf
  1213.     EndIf
  1214.     EndWait
  1215.     return
  1216. [CreateFullTapiAddrList]
  1217.     Debug-Output $(InfName)": Entering [TapiAddrList]"
  1218.     Set AdapterNum = $($0)
  1219.     Set FullTapiAddrList =     {$(AdapterNum)"-1-0", $(AdapterNum)"-2-0", $(AdapterNum)"-3-0", +
  1220.                             $(AdapterNum)"-4-0", $(AdapterNum)"-5-0", $(AdapterNum)"-6-0", +
  1221.                             $(AdapterNum)"-7-0", $(AdapterNum)"-8-0", $(AdapterNum)"-9-0", +
  1222.                             $(AdapterNum)"-10-0", $(AdapterNum)"-11-0", $(AdapterNum)"-12-0", +
  1223.                             $(AdapterNum)"-13-0", $(AdapterNum)"-14-0", $(AdapterNum)"-15-0", +
  1224.                             $(AdapterNum)"-16-0", $(AdapterNum)"-17-0", $(AdapterNum)"-18-0", +
  1225.                             $(AdapterNum)"-19-0", $(AdapterNum)"-20-0", $(AdapterNum)"-21-0", +
  1226.                             $(AdapterNum)"-22-0", $(AdapterNum)"-23-0", $(AdapterNum)"-24-0", +
  1227.                             $(AdapterNum)"-25-0", $(AdapterNum)"-26-0", $(AdapterNum)"-27-0", +
  1228.                             $(AdapterNum)"-28-0", $(AdapterNum)"-29-0", $(AdapterNum)"-30-0", +
  1229.                             $(AdapterNum)"-31-0", $(AdapterNum)"-32-0", $(AdapterNum)"-33-0", +
  1230.                             $(AdapterNum)"-34-0", $(AdapterNum)"-35-0", $(AdapterNum)"-36-0", +
  1231.                             $(AdapterNum)"-37-0", $(AdapterNum)"-38-0", $(AdapterNum)"-39-0", +
  1232.                             $(AdapterNum)"-40-0", $(AdapterNum)"-41-0", $(AdapterNum)"-42-0", +
  1233.                             $(AdapterNum)"-43-0", $(AdapterNum)"-44-0", $(AdapterNum)"-45-0", +
  1234.                             $(AdapterNum)"-46-0", $(AdapterNum)"-47-0", $(AdapterNum)"-48-0", +
  1235.                             $(AdapterNum)"-49-0", $(AdapterNum)"-50-0", $(AdapterNum)"-51-0", +
  1236.                             $(AdapterNum)"-52-0", $(AdapterNum)"-53-0", $(AdapterNum)"-54-0", +
  1237.                             $(AdapterNum)"-55-0", $(AdapterNum)"-56-0", $(AdapterNum)"-57-0", +
  1238.                             $(AdapterNum)"-58-0", $(AdapterNum)"-59-0", $(AdapterNum)"-60-0", +
  1239.                             $(AdapterNum)"-61-0", $(AdapterNum)"-62-0", $(AdapterNum)"-63-0", +
  1240.                             $(AdapterNum)"-64-0", $(AdapterNum)"-65-0", $(AdapterNum)"-66-0", +
  1241.                             $(AdapterNum)"-67-0", $(AdapterNum)"-68-0", $(AdapterNum)"-69-0", +
  1242.                             $(AdapterNum)"-70-0", $(AdapterNum)"-71-0", $(AdapterNum)"-72-0", +
  1243.                             $(AdapterNum)"-73-0", $(AdapterNum)"-74-0", $(AdapterNum)"-75-0", +
  1244.                             $(AdapterNum)"-76-0", $(AdapterNum)"-77-0", $(AdapterNum)"-78-0", +
  1245.                             $(AdapterNum)"-79-0", $(AdapterNum)"-80-0", $(AdapterNum)"-81-0", +
  1246.                             $(AdapterNum)"-82-0", $(AdapterNum)"-83-0", $(AdapterNum)"-84-0", +
  1247.                             $(AdapterNum)"-85-0", $(AdapterNum)"-86-0", $(AdapterNum)"-87-0", +
  1248.                             $(AdapterNum)"-88-0", $(AdapterNum)"-89-0", $(AdapterNum)"-90-0", +
  1249.                             $(AdapterNum)"-91-0", $(AdapterNum)"-92-0", $(AdapterNum)"-93-0", +
  1250.                             $(AdapterNum)"-94-0", $(AdapterNum)"-95-0", $(AdapterNum)"-96-0", +
  1251.                             $(AdapterNum)"-97-0", $(AdapterNum)"-98-0", $(AdapterNum)"-99-0", +
  1252.                             $(AdapterNum)"-100-0", $(AdapterNum)"-101-0", $(AdapterNum)"-102-0", +
  1253.                             $(AdapterNum)"-103-0", $(AdapterNum)"-104-0", $(AdapterNum)"-105-0", +
  1254.                             $(AdapterNum)"-106-0", $(AdapterNum)"-107-0", $(AdapterNum)"-108-0", +
  1255.                             $(AdapterNum)"-109-0", $(AdapterNum)"-110-0", $(AdapterNum)"-111-0", +
  1256.                             $(AdapterNum)"-112-0", $(AdapterNum)"-113-0", $(AdapterNum)"-114-0", $(AdapterNum)"-115-0", +
  1257.                             $(AdapterNum)"-116-0", $(AdapterNum)"-117-0", $(AdapterNum)"-118-0", +
  1258.                             $(AdapterNum)"-119-0", $(AdapterNum)"-120-0", $(AdapterNum)"-121-0", +
  1259.                             $(AdapterNum)"-122-0", $(AdapterNum)"-123-0", $(AdapterNum)"-124-0", +
  1260.                             $(AdapterNum)"-125-0", $(AdapterNum)"-126-0", $(AdapterNum)"-127-0", +
  1261.                             $(AdapterNum)"-128-0", $(AdapterNum)"-129-0", $(AdapterNum)"-130-0", +
  1262.                             $(AdapterNum)"-131-0", $(AdapterNum)"-132-0", $(AdapterNum)"-133-0", +
  1263.                             $(AdapterNum)"-134-0", $(AdapterNum)"-135-0", $(AdapterNum)"-136-0", +
  1264.                             $(AdapterNum)"-137-0", $(AdapterNum)"-138-0", $(AdapterNum)"-139-0", +
  1265.                             $(AdapterNum)"-140-0", $(AdapterNum)"-141-0", $(AdapterNum)"-142-0", +
  1266.                             $(AdapterNum)"-143-0", $(AdapterNum)"-144-0", $(AdapterNum)"-145-0", +
  1267.                             $(AdapterNum)"-146-0", $(AdapterNum)"-147-0", $(AdapterNum)"-148-0", +
  1268.                             $(AdapterNum)"-149-0", $(AdapterNum)"-150-0", $(AdapterNum)"-151-0", +
  1269.                             $(AdapterNum)"-152-0", $(AdapterNum)"-153-0", $(AdapterNum)"-154-0", +
  1270.                             $(AdapterNum)"-155-0", $(AdapterNum)"-156-0", $(AdapterNum)"-157-0", +
  1271.                             $(AdapterNum)"-158-0", $(AdapterNum)"-159-0", $(AdapterNum)"-160-0", +
  1272.                             $(AdapterNum)"-161-0", $(AdapterNum)"-162-0", $(AdapterNum)"-163-0", +
  1273.                             $(AdapterNum)"-164-0", $(AdapterNum)"-165-0", $(AdapterNum)"-166-0", +
  1274.                             $(AdapterNum)"-167-0", $(AdapterNum)"-168-0", $(AdapterNum)"-169-0", +
  1275.                             $(AdapterNum)"-170-0", $(AdapterNum)"-171-0", $(AdapterNum)"-172-0", +
  1276.                             $(AdapterNum)"-173-0", $(AdapterNum)"-174-0", $(AdapterNum)"-175-0", +
  1277.                             $(AdapterNum)"-176-0", $(AdapterNum)"-177-0", $(AdapterNum)"-178-0", +
  1278.                             $(AdapterNum)"-179-0", $(AdapterNum)"-180-0", $(AdapterNum)"-181-0", +
  1279.                             $(AdapterNum)"-182-0", $(AdapterNum)"-183-0", $(AdapterNum)"-184-0", +
  1280.                             $(AdapterNum)"-185-0", $(AdapterNum)"-186-0", $(AdapterNum)"-187-0", +
  1281.                             $(AdapterNum)"-188-0", $(AdapterNum)"-189-0", $(AdapterNum)"-190-0", +
  1282.                             $(AdapterNum)"-191-0", $(AdapterNum)"-192-0", $(AdapterNum)"-193-0", +
  1283.                             $(AdapterNum)"-194-0", $(AdapterNum)"-195-0", $(AdapterNum)"-196-0", +
  1284.                             $(AdapterNum)"-197-0", $(AdapterNum)"-198-0", $(AdapterNum)"-199-0", +
  1285.                             $(AdapterNum)"-200-0", $(AdapterNum)"-201-0", $(AdapterNum)"-202-0", +
  1286.                             $(AdapterNum)"-203-0", $(AdapterNum)"-204-0", $(AdapterNum)"-205-0", +
  1287.                             $(AdapterNum)"-206-0", $(AdapterNum)"-207-0", $(AdapterNum)"-208-0", +
  1288.                             $(AdapterNum)"-209-0", $(AdapterNum)"-210-0", $(AdapterNum)"-211-0", +
  1289.                             $(AdapterNum)"-212-0", $(AdapterNum)"-213-0", $(AdapterNum)"-214-0", $(AdapterNum)"-215-0", +
  1290.                             $(AdapterNum)"-216-0", $(AdapterNum)"-217-0", $(AdapterNum)"-218-0", +
  1291.                             $(AdapterNum)"-219-0", $(AdapterNum)"-220-0", $(AdapterNum)"-221-0", +
  1292.                             $(AdapterNum)"-222-0", $(AdapterNum)"-223-0", $(AdapterNum)"-224-0", +
  1293.                             $(AdapterNum)"-225-0", $(AdapterNum)"-226-0", $(AdapterNum)"-227-0", +
  1294.                             $(AdapterNum)"-228-0", $(AdapterNum)"-229-0", $(AdapterNum)"-230-0", +
  1295.                             $(AdapterNum)"-231-0", $(AdapterNum)"-232-0", $(AdapterNum)"-233-0", +
  1296.                             $(AdapterNum)"-234-0", $(AdapterNum)"-235-0", $(AdapterNum)"-236-0", +
  1297.                             $(AdapterNum)"-237-0", $(AdapterNum)"-238-0", $(AdapterNum)"-239-0", +
  1298.                             $(AdapterNum)"-240-0", $(AdapterNum)"-241-0", $(AdapterNum)"-242-0", +
  1299.                             $(AdapterNum)"-243-0", $(AdapterNum)"-244-0", $(AdapterNum)"-245-0", +
  1300.                             $(AdapterNum)"-246-0", $(AdapterNum)"-247-0", $(AdapterNum)"-248-0", +
  1301.                             $(AdapterNum)"-249-0", $(AdapterNum)"-250-0", $(AdapterNum)"-251-0", +
  1302.                             $(AdapterNum)"-252-0", $(AdapterNum)"-253-0", $(AdapterNum)"-254-0", +
  1303.                             $(AdapterNum)"-255-0", $(AdapterNum)"-256-0"}
  1304.     return $(FullTapiAddrList)
  1305. [InstallRASPPTPFDriver]
  1306.     Set MAXIMUM_ALLOWED = 33554432
  1307.     set Status = STATUS_SUCCESSFUL
  1308.     set KeyNull = ""
  1309.     Debug-Output "InstallRASPPTPFDriver entry"
  1310.     OpenRegKey $(!REG_H_LOCAL) "" $(!RaspptpfKeyName) $(MAXIMUM_ALLOWED) KeyService
  1311.     Ifstr(i) $(KeyService) == $(KeyNull)
  1312.         Shell "utility.inf", CreateService, $(!PPTPFProductName), +
  1313.             $(!PPTPFProductDisplayName), +
  1314.             $(!PPTPFProductImagePath), +
  1315.             "kernelautostart", "TDI", {"TCPIP"}, ""
  1316.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1317.             Debug-Output "OEMNXPPP.INF: InstallRASPPTPFDriver : ShellCode error"
  1318.             return STATUS_FAILED
  1319.         endif
  1320.         set RegistryErrorIndex = $($R0)
  1321.         CloseRegKey $($R1)
  1322.         CloseRegKey $($R2)
  1323.         CloseRegKey $($R3)
  1324.         Ifstr(i) $(RegistryErrorIndex) == SERVICE_ALREADY_EXISTS
  1325.            return $(Status)
  1326.         EndIf
  1327.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1328.             Debug-Output "OEMNXPPP.INF: InstallRASPPTPFDriver: Registry error create service"
  1329.             return STATUS_FAILED
  1330.         endif
  1331.     endif
  1332.     Ifstr(i) $(KeyService) != $(KeyNull)
  1333.         CloseRegKey $(KeyService)
  1334.     endif
  1335.     Debug-Output "InstallRASPPTPFDriver exit"
  1336.     return $(Status)
  1337. [RemoveRASPPTPFDriver]
  1338.     Set MAXIMUM_ALLOWED = 33554432
  1339.     set Status = STATUS_SUCCESSFUL
  1340.     set KeyNull = ""
  1341.     Debug-Output "RemoveRASPPTPFDriver entry"
  1342.     OpenRegKey $(!REG_H_LOCAL) "" $(!RaspptpfKeyName) $(MAXIMUM_ALLOWED) KeyService
  1343.     Ifstr(i) $(KeyService) != $(KeyNull)
  1344.         Shell "utility.inf", RemoveService $(!PPTPFProductName) "YES"
  1345.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1346.             Debug-Output "OEMNXPPP.INF: RemoveRASPPTPFDriver : ShellCode error"
  1347.             return STATUS_FAILED
  1348.         endif
  1349.         set RegistryErrorIndex = $($R0)
  1350.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1351.             Debug-Output "OEMNXPPP.INF: RemoveRASPPTPFDriver: Registry error: "
  1352.             return STATUS_FAILED
  1353.         endif
  1354.         CloseRegKey $(KeyService)
  1355.     endif
  1356.     Debug-Output "RemoveRASPPTPFDriver exit"
  1357.     return $(Status)
  1358. [AddServiceDependency]
  1359.     Debug-Output "AddServiceDependency: entry"
  1360.     set MAXIMUM_ALLOWED = 33554432
  1361.     set SERVICE_NO_CHANGE = 4294967295
  1362.     set Status   = STATUS_FAILED
  1363.     Set KeyNull  = ""
  1364.     set DependentService = $(!NTN_ServiceBase)\$($0)
  1365.     set DependentName = $($0)
  1366.     set DependOn = $($1)
  1367.     set ServiceKey = $(KeyNull)
  1368.     OpenRegKey $(!REG_H_LOCAL) "" $(DependentService)"\Linkage" $(MAXIMUM_ALLOWED) ServiceKey
  1369.     ifstr(i) $(ServiceKey) != $(KeyNull)
  1370.         GetRegValue $(ServiceKey) "OtherDependencies" ServicesList
  1371.         ifint $(RegLastError) != 0
  1372.            set ServiceValues = {}
  1373.         else
  1374.            set ServiceValues = *($(ServicesList),4)
  1375.         endif
  1376.         debug-output "AddServiceDependency: Old OtherDependencies: "$(ServiceValues)
  1377.         ifstr(i) $(ServiceValues) == {}
  1378.             Set ServiceValues = {$(DependOn)}
  1379.         else-ifstr(i) $(ServiceValues) == ""
  1380.             Set ServiceValues = {$(DependOn)}
  1381.         else-ifcontains(i) $(DependOn) in $(ServiceValues)
  1382.             return STATUS_SUCCESSFUL
  1383.         else
  1384.             Set ServiceValues = >($(ServiceValues), $(DependOn))
  1385.         endif
  1386.         debug-output "AddServiceDependency: New OtherDependencies: "$(ServiceValues)
  1387.         SetRegValue $(ServiceKey) {OtherDependencies, 0,+
  1388.                                    $(!REG_VT_MULTI_SZ), $(ServiceValues)}
  1389.         CloseRegKey $(ServiceKey)
  1390.         set Status = STATUS_SUCCESSFUL
  1391.     else
  1392.         Debug-Output "AddServiceDependency: error opening service "$(DependentService)"\Linkage"
  1393.     endif
  1394.     set KeyService = $(KeyNull)
  1395.     OpenRegKey $(!REG_H_LOCAL) "" $(DependentService) $(MAXIMUM_ALLOWED) KeyService
  1396.     ifstr $(KeyService) != $(KeyNull)
  1397.         set newDependList = {$(DependOn)}
  1398.         GetRegValue    $(KeyService) "DependOnService" ServiceList
  1399.         ifint $(RegLastError) == 0
  1400.             Debug-Output "AddServiceDependency: old DependOnService List "*($(ServiceList), 4)
  1401.             ForListDo *($(ServiceList),4)
  1402.                 ifstr(i) $($) != $(DependOn)
  1403.                    set newDependList = >($(newDependList), $($))
  1404.                 endif
  1405.             EndForListDo
  1406.         endif
  1407.         GetRegValue    $(KeyService) "DependOnGroup" GrpList
  1408.         ifint $(RegLastError) == 0
  1409.             Debug-Output "AddServiceDependency: old DependOnGroup List "*($(GrpList), 4)
  1410.             ForListDo *($(GrpList),4)
  1411.                set grp = "+"$($)
  1412.                set newDependList = >($(newDependList), $(grp))
  1413.             EndForListDo
  1414.         endif
  1415.         Debug-Output "OEMNSVRA.INF: AddServiceDependency: new Dependency List "$(newDependList)
  1416.         LibraryProcedure Result, $(!LIBHANDLE), SetupChangeServiceConfig, $(DependentName) $(SERVICE_NO_CHANGE), $(SERVICE_NO_CHANGE), $(SERVICE_NO_CHANGE), "", "", $(newDependList), "", "", ""
  1417.         CloseRegKey $(KeyService)
  1418.     else
  1419.         Debug-Output "AddServiceDependency: failed to open service linkage key"$(DependentService)
  1420.     endif
  1421.     Debug-Output "AddServiceDependency: exit"
  1422.     return $(Status)
  1423. [DebugConfiguration]
  1424.     Debug-Output $(!p:InfName)": **CONFIGURATION STATE: "$($0)
  1425.     Debug-Output $(!p:InfName)": InterruptNumber is "$(!p:InterruptNumber)
  1426.     Debug-Output $(!p:InfName)": RamBaseAddress  is "$(!p:RamBaseAddress)
  1427.     Return
  1428. [DebugGlobalFlags]
  1429.     Debug-Output $(InfName)": **CONFIGURATION STATE: "$($0)
  1430.     Debug-Output $(InfName)": !STF_SRCDIR_USED value is "$(!STF_SRCDIR_USED)
  1431.     Debug-Output $(InfName)": !STF_SRCDIR_KEYED value is "$(!STF_SRCDIR_KEYED)
  1432.     Debug-Output $(InfName)": !STF_SRCDIR_OVERRIDE value is "$(!STF_SRCDIR_OVERRIDE)
  1433.     Return
  1434. [Install-Option]
  1435.     Set STF_VITAL = ""
  1436.     IfStr(i) $(AddCopy) == "YES"
  1437.         AddSectionFilesToCopyList Files-RASPPTPDLL $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1438.         AddSectionFilesToCopyList Files-RASPPTPDRV $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1439.     EndIf
  1440.     IfStr(i) $(DoCopy) == "YES"
  1441.        Set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1442.        CopyFilesInCopyList
  1443.     Else
  1444.        LibraryProcedure STATUS, $(!NCPA_HANDLE), CopySingleFile $(!STF_HWND) $(SrcDir)\RASPPTPC.DLL $(!STF_WINDOWSSYSPATH)\RASPPTPC.DLL
  1445.     EndIf
  1446.     Exit
  1447. [Install-Update]
  1448.    Set STF_VITAL        = ""
  1449.    Set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  1450.    AddSectionFilesToCopyList Files-RASPPTPDLL $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1451.    AddSectionFilesToCopyList Files-RASPPTPDRV $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1452.    Set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1453.    CopyFilesInCopyList
  1454.    Exit
  1455. [Source Media Descriptions]
  1456.     1 = "Windows NT Server CD-ROM", TAGFILE = cdrom_s.40
  1457. [Signature]
  1458.     FileType = MICROSOFT_FILE
  1459. [GetSignature]
  1460.     read-syms Signature
  1461.     return $(FileType)
  1462. [ProductType]
  1463. STF_PRODUCT  = LanmanNT
  1464. STF_PLATFORM = I386
  1465. [Files-Inf]
  1466. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  1467. [Files-RASPPTPDLL]
  1468. 1,RASPPTPC.DLL , SIZE=999
  1469. 1,RASPPTPL.DLL , SIZE=999
  1470. [Files-RASPPTPDRV]
  1471. 1,RASPPTPE.SYS , SIZE=999
  1472. 1,RASPPTPF.SYS , SIZE=999
  1473. 1,RASPPTPM.SYS , SIZE=999
  1474. 1,RASPPTPU.SYS , SIZE=999
  1475. [LanguagesSupported]
  1476.     ENG
  1477. [OptionsTextENG]
  1478.     RASPPTP             = "Point To Point Tunneling Protocol"
  1479. [FileConstantsENG]
  1480.     ProCaption          = "Windows NT Setup"
  1481.     ProCancel           = "Cancel"
  1482.     ProCancelMsg        = "Windows NT Networking is not correctly installed.  "+
  1483.                           "Are you sure you want to cancel copying files?"
  1484.     ProCancelCap        = "Network Setup Message"
  1485.     ProText1            = "Copying:"
  1486.     ProText2            = "To:"
  1487.     FunctionTitleRASPPTP                = "PPTP Card Setup"
  1488.     ProductSoftwareDescription          = "PPTP Miniport Driver"
  1489.     ProductHardwareRASPPTPDescription   = "PPTP Adapter"
  1490.     ProductSoftwareTitle                = "PPTP Miniport Driver"
  1491.     ProductHardwareRASPPTPTitle         = "PPTP Adapter"
  1492.     ProductRASPPTPDescription           = "This is a protocol for tunneling secure remote network communications across Point to Point (PPP) connections to the Internet. "+
  1493.                                           "It will allow remote and mobile users to dial into the Internet, using local points of presence and Internet service providers (ISPs) to gain access to corporate networks."
  1494.     ProductRASPPTPTitle                 = "Point To Point Tunneling Protocol"
  1495.     ShellCodeErrorTitle                 = "Error: "$(FunctionTitle)$(Option))
  1496.     ShellCodeErrorText                  = "Shell Code Error."
  1497. [SMANFileConstantsENG]
  1498.     PPTPFunctionTitleRASPPTP                = "PPTP Card Setup"
  1499.     PPTPProductSoftwareDescription          = "PPTP Protocol Driver"
  1500.     PPTPProductHardwareRASPPTPDescription   = "PPTP Adapter"
  1501.     PPTPProductSoftwareTitle                = "PPTP Protocol Driver"
  1502.     PPTPProductHardwareRASPPTPTitle         = "PPTP Adapter"
  1503.     !PPTPFProductDisplayName                = "PPTP Filter Driver"
  1504. [DialogConstantsENG]
  1505.     Help                = "&Help"
  1506.     Exit                = "Cancel"
  1507.     OK                  = "OK"
  1508.     HelpContext         = ""
  1509.     Continue            = "Continue"
  1510.     Cancel              = "Cancel"
  1511. [FileDependentDlgENG]
  1512.     DlgType             = "RadioCombination"
  1513.     DlgTemplate         = "NE2000"
  1514.     Caption             = $(FunctionTitle)$(Option)
  1515.     EditTextIn          = ""
  1516.     EditTextLim         = ""
  1517.     CBOptionsGreyed     = {}
  1518.     NotifyFields        = {NO, NO}
  1519. [InvokeRasDlgENG]
  1520.     InvokeRasSetupMsg   = "Remote Access Services (RAS) will now be installed. "+
  1521.                           "Please configure the PPTP ports in RAS "+
  1522.                           "setup to enable you to use RAS over PPTP."
  1523.     InvokeRasConfigMsg  = "Remote Access Services (RAS) setup will now be invoked. "+
  1524.                           "Please configure the PPTP ports in RAS "+
  1525.                           "setup to enable you to use RAS over PPTP."
  1526.     InvokeRasConfigMsg2 = "Remote Access Services (RAS) setup will now be invoked. "+
  1527.                           "Please remove the PPTP ports in RAS configuration."
  1528.     InvokeRasError      = "PPTP setup encountered an error "+
  1529.                           "while invoking the RAS setup INF file (OEMNSVRA.INF). "+
  1530.                           "Please make sure that the file is present in the "+
  1531.                           "System32 directory and is the proper file."
  1532. [InvokeTCPIPDlgENG]
  1533.     InvokeTCPSetupMsg   = "TCP/IP is not installed. It will now be installed."
  1534.     InvokeTCPError      = "PPTP setup encountered an error "+
  1535.                           "while invoking the TCP/IP setup INF file (OEMNXPTC.INF). "+
  1536.                           "Please make sure that the file is present in the "+
  1537.                           "System32 directory and is the proper file."
  1538. [InvokeCancelDlgENG]
  1539.     InvokeCancelMsg = "PPTP setup is incomplete. "+
  1540.                        "Please rerun the Setup Program if you want "+
  1541.                        "to install PPTP."
  1542. [InvokeConfigureDlgENG]
  1543.     InvokeConfigureMsg = "Please reboot for the new changes to take effect."
  1544.